def add(a, b):
    if a is None or b is None:
        return 0
    return a + b

def calculate(value, other):
    result = add(value, other)
    return result